package com.dragon.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.repository.entity.Calendared;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sy
 * @since 2023-07-19
 */
@Mapper
public interface CalendarMapper extends BaseMapper<Calendared> {

    @Select("SELECT dc.* FROM dragon_calendar dc WHERE DATE_FORMAT(dc.o_date,'%Y-%m') = #{time}")
    List<Calendared> selectMonthList(String time);
}
